package util.designpattern.proxyPattern;

public class OrderService implements IOrderService {
    private OrderDao orderDao;

    public OrderService(){
        System.out.println("orderDao注入======>");
        orderDao = new OrderDao();
    }
    @Override
    public int createOrder(Order order) {
        System.out.println("orderService调用orderDao创建订单");
        return orderDao.insert(order);
    }
}
